function samples = SK7_Data_Samples_Available( ID )
% SHAKE SK7 Matlab Driver v1.00, (c) 2010 SAMH Engineering Services
%
% function samples = SK7_Data_Samples_Available( ID )
% Returns the number of samples available for the sensor <ID> in the global 
% receive buffer.
% Example Usage: To read the number of acceleration samples available
% samples = SK7_Data_Samples_Available( IDs.Accelerometer )
% where the IDs structure is available by calling IDs = SK7_Get_Sensor_Indexes()


global BuffItems				% holds the number of items in the buffer

samples = BuffItems( ID );
end
